package cn.rongdao.jrkabao.model.deposit;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.Map;

import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/8/1
 */

public class DepositAddCardModel extends BaseKaMaoModel {

    public static DepositAddCardModel getInstance() {
        return getPresent(DepositAddCardModel.class);
    }

    public void execute(Map<String, String> map, Observer<String> observer) {
        addParamStrings(map);
        Observable<String> observable = mServletApi.bindBankCard(mParams).map(new HttpFunction<String>());
        toSubscribe(observable, observer);
    }
}
